import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/reset.css'
import {
  Container, Aside, Header, Main, Menu, Submenu, MenuItemGroup,
  MenuItem, Breadcrumb, BreadcrumbItem, Avatar, Dropdown, DropdownMenu,
  DropdownItem, Form, FormItem, Input, DatePicker, Button, Table,
  TableColumn, Switch, Pagination, Drawer, Select, Option, Upload, Message,
  MessageBox, Tooltip, Tag, Card, InputNumber, Row, Col
} from 'element-ui'
import JsonExcel from 'vue-json-excel'
import { Editor, Toolbar } from '@wangeditor/editor-for-vue'
import '@wangeditor/editor/dist/css/style.css'
import * as echarts from 'echarts'
import BaiduMap from 'vue-baidu-map'
Vue.component('downloadExcel', JsonExcel)
Vue.component('WangEditor', Editor)
Vue.component('WangToolbar', Toolbar)
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'W3KyDHODZbt4OhXlSzITdDYRCLGSVW2P'
})
const { alert, confirm, prompt } = MessageBox
Vue.prototype.$alert = alert
Vue.prototype.$confirm = confirm
Vue.prototype.$prompt = prompt
Vue.prototype.$message = Message
Vue.prototype.$echarts = echarts
Vue.use(Container)
  .use(Aside)
  .use(Header)
  .use(Main)
  .use(Menu)
  .use(Submenu)
  .use(MenuItemGroup)
  .use(MenuItem)
  .use(Breadcrumb)
  .use(BreadcrumbItem)
  .use(Avatar)
  .use(Dropdown)
  .use(DropdownMenu)
  .use(DropdownItem)
  .use(Form)
  .use(FormItem)
  .use(Input)
  .use(DatePicker)
  .use(Button)
  .use(Table)
  .use(TableColumn)
  .use(Switch)
  .use(Pagination)
  .use(Drawer)
  .use(Select)
  .use(Option)
  .use(Upload)
  .use(Tooltip)
  .use(Tag)
  .use(Card)
  .use(InputNumber)
  .use(Row)
  .use(Col)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
